package com.hp.bon.omc;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

public interface OMCAlarmInterface {
	
	
	
	@GET
	@Path("omc/alarm/sgwstatenotify/{sgwNeHost:.*}/{state:.*}/{time:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String alarmSGWStateNotify(@PathParam("sgwNeHost") String sgwNeHost,@PathParam("state") String state,@PathParam("time") String time);
	
	@GET
	@Path("omc/alarm/nestatenotify/{neHost:.*}/{state:.*}/{neCode:.*}/{time:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String alarmNeStateNotify(@PathParam("neHost") String neHost,@PathParam("state") String state,@PathParam("neCode") String neCode,@PathParam("time") String time);
	
	
	@GET
	@Path("omc/alarm/abilitystatenotify/{neHost:.*}/{capability:.*}/{state:.*}/{time:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String alarmAbilityStateNotify(@PathParam("neHost") String neHost,@PathParam("capability") String capability,@PathParam("state") String state,@PathParam("time") String time);
	
	
	@GET
	@Path("omc/alarm/congestionctrlnotify/{neHost:.*}/{sgwHostId:.*}/{congestLevel:.*}/{queMsgUsedRate:.*}/{usingQueCount:.*}/{totalQueCount:.*}/{cpuUsedRate:.*}/{memUsedRate:.*}/{time:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String alarmCongestionCtrlNotiry(@PathParam("neHost") String neHost,@PathParam("sgwHostId") String sgwHostId,@PathParam("congestLevel") String congestLevel,@PathParam("queMsgUsedRate") String queMsgUsedRate,@PathParam("usingQueCount") String usingQueCount,@PathParam("totalQueCount") String totalQueCount,@PathParam("cpuUsedRate") String cpuUsedRate,@PathParam("memUsedRate") String memUsedRate,@PathParam("time") String time);
	
	
	@GET
	@Path("omc/alarm/errornotify/{neHost:.*}/{processName:.*}/{logGrade:.*}/{errorCode:.*}/{errorName:.*}/{logContent:.*}/{expertAdvice:.*}/{time:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String alarmErrorNotify(@PathParam("neHost") String neHost,@PathParam("processName") String processName,@PathParam("logGrade") String logGrade,@PathParam("errorCode") String errorCode,@PathParam("errorName") String errorName,@PathParam("logContent") String logContent,@PathParam("expertAdvice") String expertAdvice,@PathParam("time") String time);
	
	
	@GET
	@Path("omc/alarm/sendactivedeactivetosr/{newStatus:.*}")
	@Produces(MediaType.APPLICATION_JSON)
	public String sendActiveDeActiveToSR(@PathParam("newStatus") int newStatus);
	
}